@layout("/common/_container.html",{js:["/assets/modular/system/btyGoodsPay/btyGoodsPayAllData.js"],css:["/assets/common/css/beautiful.css"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>
<style>
    ::-webkit-scrollbar {
        height: 16px!important;
    }
    .layui-table-cell {
        height: 28px;
        line-height: 28px;
         padding: 0 0px!important;
        position: relative;
        box-sizing: border-box;
        /*text-align: center;*/
    }
    .laytable-cell-1-0-1 {
        width: 190px;
        padding-left: 11px !important;
    }
    .layui-form-label{
        width: 70px !important;
    }
</style>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">店名</label>
                                <div class="layui-input-inline">
                                    <input id="dm" class="layui-input" type="text" placeholder="店名"/>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">财务人员</label>
                                <div class="layui-input-inline lablew">
                                    <select name="cwry" lay-filter="cwry" id="cwry" lay-search="">
                                        <option value=''>全部财务人员</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">月份</label>
                                <div class="layui-input-inline lablew">
                                    <input type="text" class="layui-input" value="${dateStr}" id="month" placeholder="yyyy-MM">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">状态</label>
                                <div class="layui-input-inline lablew">
                                    <select name="status" lay-filter="status" id="status"
                                        lay-search="status">
                                        <option value="">全部状态</option>
                                        <option value="0">待发送</option>
                                        <option value="1">已发送</option>
                                        <option value="2">待审核</option>
                                        <option value="3">已通过</option>
                                        <option value="4">已驳回</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <select name="isCompliance" lay-filter="isCompliance" id="isCompliance">
                                    <option value="">是否合规</option>
                                    <option value="0">合规</option>
                                    <option value="1">不合规</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn layui-btn-sm marrig">搜索</button>
                                <button id="batchExport" class="layui-btn layui-btn-sm">按月导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="btyGoodsPayTable" lay-filter="btyGoodsPayTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">

    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="send">发送店长</a>


    {{#  if(d.status == 2){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="audit">审核</a>
    {{#  } }}

</script>

<script type="text/html" id="statusTpl">
    {{# if(d.status==0){ }}
    <span>待发送</span>
    {{# } else if(d.status==1){ }}
    <span style="color: #5FB878">已发送</span>
    {{# } else if(d.status==2){ }}
    <span style="color: #FFB800">待审核</span>
    {{# } else if(d.status==3){ }}
    <span style="color: #1E9FFF">已通过</span>
    {{# } else if(d.status==4){ }}
    <span style="color: #FF5722">已驳回</span>
    {{# } else { }}
    错误
    {{# } }}
</script>
@}
